package com.itheima.reggie.controller;

import com.itheima.reggie.entity.User;
import com.itheima.reggie.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author ljj
 * @create 2022-11-14-11:36
 */
@RestController
public class HelloController {
    @Autowired
    private UserMapper userMapper;
    @GetMapping("hello")
    public List<User> getuser(){
       return
                userMapper.selectList(null);
       // System.out.println(users);
    }
}
